package yscmd

import "context"

const FLAG_CFG_PATH_LONG = "gf.gcfg.path"

type FlagCfgPathBuilder struct {
	FlagBuilderCore
}

func (b *FlagCfgPathBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx)
	b.F.ConfigNodeName = ""
	b.F.Long = FLAG_CFG_PATH_LONG
	b.F.Description = `
        选择配置文件检索的文件夹，默认检索参看 goframe 的官网 `
	b.F.DefaultValue = nil
}

func FlagCfgPath(ctx context.Context) *Flag {
	build := &FlagCfgFileBuilder{}
	build.Init(ctx)
	return build.Flag()
}
